package com.wf.it.common.api.hystrix;

import com.wf.it.common.api.DoctorService;
import com.wf.it.common.entity.Doctor;
import com.wf.it.common.vo.Result;
import org.springframework.stereotype.Service;

@Service
public class DoctorServiceHystrixImpl implements DoctorService {
    @Override
    public Result findByEmpNos(String[] empNos) {
        return new Result(600,null,"网络故障,请稍后查询");
    }

    @Override
    public Result findByEmpNo(String empNo) {
        return new Result(600,null,"网络故障,请稍后查询");
    }

    @Override
    public Result findAll() {
        return new Result(600,null,"网络故障,请稍后查询");
    }

/*    @Override
    public Result2<List<Doctor>> findAll2() {
        return   new Result2<List<Doctor>>(600,null,"网络故障,请稍后查询");
    };*/


    @Override
    public Result findByDept(String deptName) {
        return new Result(600,null,"网络故障,请稍后查询");
    }

    @Override
    public Result findById(int docid) {
        return new Result(600,null,"网络故障,请稍后查询");
    }

    @Override
    public Result add(Doctor doc) {
        return new Result(600,null,"网络故障,请稍后操作");
    }
}
